<%@ include file="/WEB-INF/views/admin/header.jsp" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<div id="section">
	<div id ="mainContent">
			
			
			<div id="labelPage">ข้อมูล rule</div>
			
			<!--
			<div id="ctrlWrap">
				<div id="ctrlL">
					
					
					
						<form:form  action="ruleSearch" method="post" id="search">
							งวด วันที่ออก : <input type="text" name="name" id="name" /> 
							<button type="submit">ค้นหา</button>				
						</form:form>
					
				</div>	
				<div id="ctrlR">
					<a href="ruleAddForm"><img  src="${context}/resources/img/add.jpg"/></a>
				</div>
			</div>
			-->
			
			<table class="tableList">
				<tr class="tableHeader">
					<td>ชื่อ</td>
					<td>งบประมาณ</td>
					<td>ลายละเอียด</td>
					<td>Action</td>
				</tr>
				<c:forEach items="${rules}" var="rule" varStatus="index">
				<tr <c:if test="${index.count % 2 == 0}"> class="rowtd"</c:if>>
					<td>${rule.name}</td>
					<td>${rule.budget}</td>
					<td>${rule.detail}</td>
				    <td>
				    	<a href="ruleEditForm?id=${rule.ruleId}"><img  src="${context}/resources/img/edit.jpg"/></a> 
				    	<!--  <a href="ruleDelete?id=${rule.ruleId}"><img  src="${context}/resources/img/delete.jpg"/></a>-->
				    </td>
				</tr>    
				</c:forEach>
				
			</table>
		
	</div>	
</div>
<%@ include file="/WEB-INF/views/admin/footer.jsp" %>



